package cn.yangliu.nacos.comm.config.security.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import cn.yangliu.nacos.comm.config.security.enums.Logic;

/**
 * The interface Authorize.
 *
 * @author 问道于盲
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Authorize {

    /**
     * 权限
     *
     * @return 权限 string [ ]
     */
    String[] value();

    /**
     * 判断逻辑
     *
     * @return Logic logic
     */
    Logic logic() default Logic.AND;

}
